﻿using Pattern04抽象工厂模式.Interface;
using Pattern04抽象工厂模式.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern04抽象工厂模式.Factories
{
    public class SamsungFactory : IFactory
    {
        public IPhone GetPhone()
        {
            return new SamsungPhone();
        }

        public ITV GetTV()
        {
            return new SamsungTV();
        }
    }
}
